// src/main/java/com/macro/mall/tiny/modules/oms/dto/OrderCreateParam.java
package com.macro.mall.tiny.modules.oms.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "创建订单参数")
public class OrderCreateParam {

    @Schema(description = "用户ID")
    private Integer userId;

    @Schema(description = "用户token")
    private String token;

    @Schema(description = "商品列表")
    private List<OrderSkuParam> skuList;

    @Schema(description = "订单备注")
    private String remark;

    @Data
    @Schema(description = "订单商品参数")
    public static class OrderSkuParam {

        @Schema(description = "商品SKU ID")
        private Integer skuId;

        @Schema(description = "购买数量")
        private Integer qty;

        @Schema(description = "商品备注")
        private String remark;
    }
}